#ifndef __PAY_LED_H__
#define __PAY_LED_H__

#include "PayBox.h"

void payLEDShow(uint32_t color) {
  ledcWrite(1, (color & 0xff0000) >> 16);
  ledcWrite(2, (color & 0x00ff00) >> 8);
  ledcWrite(3, (color & 0x0000ff));
}

void payLEDInit() {
  ledcSetup(1, 2000, 8);
  ledcSetup(2, 2000, 8);
  ledcSetup(3, 2000, 8);
  ledcAttachPin(PAY_LED_RED, 1);
  ledcAttachPin(PAY_LED_GREEN, 2);
  ledcAttachPin(PAY_LED_BLUE, 3);
}

#endif